ShortPixel\Model\Image\ImageModel D

Total Complexity 197
Dependencies 4
Dependents 8
Total lines 1,022
Lines of code 698
Logical lines of code 404
Comment lines 87
Methods 46
Properties 10

Methods 46

Method Rating Maintainability Complexity Lines of code
handleOptimized()
C
29
24 131
getProcessableReason()
B
42 16 52
createBackup()
A
41 13 62
getImageType()
A
49 10 33
isProcessable()
A
57 11 15
restore()
A
41 7 65
isPathExcluded()
A
51 9 24
isRestorable()
A
47 7 38
handleOptimizedFileType()
S
53 7 21
setImageSize()
S
58 7 16
handleWebp()
S
49 6 31
isImage()
S
55 6 22
onDelete()
S
60 6 13
isProcessableFileType()
S
60 6 12
handleAvif()
S
53 5 21
getImprovement()
S
58 5 15
get()
S
63 5 11
matchExludeRegexPattern()
S
63 4 11
setMeta()
S
60 3 15
getMeta()
S
62 3 12
getReason()
S
67 3 8
setWebp()
S
71 3 5
setAvif()
S
71 3 5
matchExcludePattern()
S
66 3 9
exists()
S
68 2 8
isOptimized()
S
68 2 8
isExtensionExcluded()
S
67 2 8
getOptimizePaths()
S
100 1 0
getOptimizeUrls()
S
100 1 0
saveMeta()
S
100 1 0
loadMeta()
S
100 1 0
isSizeExcluded()
S
100 1 0
getImprovements()
S
100 1 0
getOptimizeFileType()
S
100 1 0
preventNextTry()
S
100 1 0
isOptimizePrevented()
S
100 1 0
resetPrevent()
S
100 1 0
__construct()
S
80 1 3
getLastErrorMessage()
S
82 1 3
__get()
S
80 1 3
getWebp()
S
80 1 3
getAvif()
S
80 1 3
recordChanged()
S
81 1 3
hasMeta()
S
79 1 3
toClass()
S
81 1 3
fs()
S
80 1 3